package nuig.prolog.userTypingFormat.impl;


import nuig.prolog.PrologAccess.impl.SentenceProcess;
import nuig.prolog.userTypingFormat.Rule;

public class SentenceRule extends Rule{



	@Override
	public Rule DoRule() throws Exception {
		SentenceProcess sentenceProcess=new SentenceProcess();
		
		if(sentenceProcess.isSuccess(GetString()))
		{
			ReturnMessage.delete(0, ReturnMessage.length());// 清空   
			
			//ReturnMessage.append("I understand this is a sentence.");
		}else
		{
			ReturnMessage.delete(0, ReturnMessage.length());// 清空 
			ReturnMessage.append("sorry,I don't understand.");
		}
		
		return this;
	}



}
